package com.katesoft.scale4j.demo.domain;

import com.katesoft.scale4j.persistent.model.unified.AbstractPersistentEntity;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.envers.Audited;

import javax.persistence.Cacheable;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "t_currency")
@Audited
@Cacheable
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Currency extends AbstractPersistentEntity
{
    private String code;

    public Currency(String code)
    {
        this.code = code;
    }

    public Currency()
    {
    }

    public String getCode()
    {
        return code;
    }

    public void setCode(String code)
    {
        this.code = code;
    }
}
